package com._520it._02_one2many.mapper;

import com._520it._02_one2many.domain.Department;
import com._520it._02_one2many.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface DepartmentMapper {

	void save(Department department);
	Department get(Long id);

	//根据many方id的变化, one方来维护many方的关系, 也就是设置many方的外键信息
	void updateRelation(@Param("deptId") Long deptId, @Param("empId") long empId);

	 List<Department> list();
}
